package VO;

import java.io.Serializable;

import PO.*;

public class PlanVO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int ID;
	private Department department;
	private String name;
	private frame frame;
	private int in;
	private int out;
	private int DesignLesson;

	public PlanVO(PlanPO po) {

		this.ID = po.getID();
		this.department = po.getDep();
		this.in = po.getIN();
		this.frame = po.getFrame();
		this.out = po.getOUT();
		this.name = po.getName();
	}

	public PlanPO getPO() {
		return new PlanPO(ID, department, name, frame, in, out);
	}

	public PlanVO(int id, Department dep, String n, frame f,
			int IN, int OUT) {
		ID = id;
		department = dep;
		name = n;
		frame = f;
		in = IN;
		out = OUT;

	}

	public Department getDep() {
		return (department);

	}

	public int getID() {

		return ID;
	}

	public String getName() {

		return (name);
	}

	public frame getFrame() {
		return (frame);

	}


	public int getDesign() {
		return (DesignLesson);
	}

	public void update(int id, Department dep, String n, frame f,
			int IN, int OUT) {
		ID = id;
		department = dep;
		name = n;
		frame = f;
		in = IN;
		out = OUT;

	}

	public int getOUT() {
		// TODO Auto-generated method stub
		return out;
	}

	public int getIN() {
		return in;
	}
	public void setIN(int i)
	{
		in = i;
	}
	public void setOut(int o)
	{
		out = o;
	}

}
